package cn.tedu.lianxi;

public class Text4 {

	public static void main(String[] args) {
		int a=10;

        int b=20;

        String name="lisi";
        f1();

        f1(a);

        f1(a,b);

        f1(a,b,name);

 }



 private static void f1(int a, int b, String name) {

        System.out.println(a+b+name);//30name

 }



 private static void f1() {

        System.out.println("f1()");

 }



 private static void f1(int a) {

        System.out.println(a);

 }



 private static void f1(int a, int b) {

        System.out.println(a+b);

 }   

	}



